package fjdz;

public class BossDiji extends Suoyoufxw{
	int bosshp=100;
	public BossDiji(){
		img = Gongjutp.getImg("/img/epd1.png");
		x=200;
		y=0-200;
		w=400;
		h=200;
	}

	public void move() {
		y+=2;
	}

	public boolean jizhongbs(Zidan zd) {
		boolean hit = x<=zd.x+zd.w&&
				  x>=zd.x-w&&
			      y<=zd.y+zd.h&&
			      y>=zd.y-h;
		return hit;
	}

	public boolean jizhongbs(yingxiongji yxj) {
		boolean hit = x<=yxj.x+yxj.w&&
				  x>=yxj.x-w&&
			      y<=yxj.y+yxj.h&&
			      y>=yxj.y-h;
		return hit;
	}
	
}
